﻿using System;
using System.IO;
using System.Collections.Generic;

namespace Heaven.Engine.Serialization
{
    /// <summary>
    /// Helper class for deserialization process
    /// </summary>
    public class Deserializer : BinaryReader
    {
        /// <summary>
        /// Gets or sets the position within 
        /// the current stream
        /// </summary>
        public long Position
        {
            get { return BaseStream.Position; }
            set { BaseStream.Position = value; }
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="stream">The input stream</param>
        public Deserializer(Stream stream) : base(stream) { }
    }
}
